package org.zjsru.order.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.zjsru.order.pojo.User;
import java.util.Map;

/**
 * 用户服务Feign客户端
 */
@FeignClient(name = "user-service", fallback = UserServiceFeignFallback.class)
public interface UserServiceFeign {

    @GetMapping("/user/{id}")
    User findById(@PathVariable("id") Long id);

    @GetMapping("/user/{id}/status")
    Map<String, Object> checkUserStatus(@PathVariable("id") Long id);
} 